<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script>
			//default.js文件
			let name = "tom";
			let age = 20;
			let phone = '13813661234'
			let introduce = function(){
				return `My name is ${name}! I'm ${age} years old!`;
			};
			
			export default name;	//默认导出
			
			//index.html文件
			import defaultName from './default.js';//使用任意变量名接受
			console.log(defaultName);
			
		</script>
	</body>
</html>
